package org.point.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.point.common.service.impl.BaseServiceImpl;
import org.point.common.util.DoPage;
import org.point.dao.UserTaskDao;
import org.point.dao.UsersDao;
import org.point.dao.impl.UsersDaoImpl;
import org.point.domain.ProductType;
import org.point.domain.UserSign;
import org.point.domain.UserTask;
import org.point.domain.Users;
import org.point.service.UserTaskService;
import org.point.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.servlet.ModelAndView;

/**
 * @ClassName: ConvertRuleDetailServiceImpl  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午4:02:01
 */
@Service("UserTaskService")
public class UserTaskServiceImpl extends BaseServiceImpl<UserTask, Serializable> implements UserTaskService {
	
	@Autowired
	private UserTaskDao dao;

	public List<UserTask> findUserTaskList(DoPage<UserTask> page) {
		List<UserTask> records = dao.searchForUserTask(page);
		return records;
	}

	public Integer countUserTaskForPage(DoPage<UserTask> page) {
		Integer records = dao.searchUserTaskCount(page);
		return records;
	}

	public List<UserTask> searchUserTasj(Map<String, Object> map) {
		List<UserTask> records = dao.searchUserTaskMap(map);
		return records;
	}

	public DoPage<UserTask> searchCRForPage(DoPage<UserTask> page) {
		List<UserTask> records = dao.searchForUserTask(page);
		Integer totalRecords = dao.searchUserTaskCount(page);
		page.setList(records);
		page.setTotalRecords(totalRecords);
		return page;
	}
	
	
	
}
